#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/8 19:52
# @Author  : jeff
# @FileName: status_enum
from enum import Enum


class Status(Enum):
    OK = {'code': 2000, 'message': 'OK'}
    OK_MESSAGE = {'code': 2001}
    BAD_REQUEST = {'code': 4000, 'message': 'Bad Request'}
    NOT_FOUND = {'code': 4004, 'message': 'Not Found'}
    BAD_MESSAGE = {'code': 4001}
    REPEAT_MESSAGE = {'code': 1000, 'message': 'Database error'}
    ERROR_SELECT = {'code': 1000, 'message': 'Internal Server Error'}
    GENERIC_ERROR = {'code': 1001, 'message': 'Service is busy'}
    RUNNING = {'code': 1002, 'message': 'case is running'}
    ASSERT_ERROR = {'code': 1003, 'message': 'assert error'}
    EXISTED = {'code': 1004, 'message': 'existed'}
    MISS_TOKEN = {'code': 1005, 'message': 'miss token'}
    INVALID_TOKEN = {'code': 1006, 'message': 'invalid token'}
    VERIFICATION_FAILED = {'code': 1007, 'message': 'verification failed'}
    PERMISSION_FAILED = {'code': 1008, 'message': 'Permission verification failed'}
    USER_NOT_EXIST = {'code': 1009, 'message': 'user not exist or password error'}